package com.th.apicenter.elm.service;

import com.th.apicenter.config.ApplicationProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ElmService {

    @Autowired
    private ApplicationProperties applicationProperties;


    /**
     * http://ocpx.mktad.cn/ocpx/router/V100/monitor/media?reportType=6&
     * dispatchCenterId=yoyo提供&os=__OS__&imeiMd5=__IMEI__MD5__&ip=__IP__&oaid=__OAI
     * D__&callbackUrl=__CALLBACK_URL__&imei=__IMEI__&oaidMd5=__OAID__MD5__&idfa=__IDFA__&idfaMd5=__IDFA_MD5__&ua=__UA__
     */
    public void reportXX(){
//        StringBuffer stringBuffer = new StringBuffer();
//        stringBuffer.append(applicationProperties.getElm().getBaseUrl());
//        stringBuffer.append(applicationProperties.getElm().getReportUrl());
//        stringBuffer.append("?");
//        //上报类型 5:曝光 6:点击
//        stringBuffer.append("reportType=6");
//        stringBuffer.append("&dispatchCenterId=" + "");
//        //1.安卓 2.IOS
//        stringBuffer.append("&os=" + "");
//        stringBuffer.append();
    }
}
